package com.DataFactory.TaskManagement.service;

import com.DataFactory.TaskManagement.model.entity.Task;
import com.DataFactory.TaskManagement.model.form.TaskForm;
import com.DataFactory.TaskManagement.model.query.TaskQuery;
import com.DataFactory.TaskManagement.model.vo.TaskPageVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 40434
* @description 针对表【task】的数据库操作Service
* @createDate 2024-03-28 21:04:52
*/
public interface TaskService extends IService<Task> {

    /**
     * 获取任务分页列表
     * @param queryParams
     * @return
     */
    Page<TaskPageVO> getTaskPage(TaskQuery queryParams);

    /**
     * 保存任务
     * @param form
     * @return
     */
    boolean saveTask(TaskForm form);

    /**
     * 更新任务
     * @param taskId
     * @param form
     * @return
     */
    boolean updateTask(Integer taskId, TaskForm form);

    /**
     * 删除任务
     * @param ids
     * @return
     */
    boolean deleteTasks(String ids);

    /**
     * 获取任务表单
     * @param taskId
     * @return
     */
    TaskForm getTaskForm(Integer taskId);
}
